package com.ym.ms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ym.ms.entity.sys.TSysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author zhang
 */
public interface ISystemUserMapper extends BaseMapper<TSysUser> {

//    @Select("select * from mysql_data ${ew.customSqlSegment}")
//    SysUser qryOne(@Param(Constants.WRAPPER) Wrapper wrapper);

    @Select("select us.id us_id, u.* from t_system_user u " +
            "left join t_system_usersob us on u.account = us.account and us.sob = #{sob} where u.account = #{account}")
    TSysUser qryOne(@Param("account") String account, @Param("sob") Integer sob);
}